﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace cart.model
{
    public class ProductModel
    {
        private int _productID;
        private int _productTypeID;
        private string _name;
        private string _productNo;
        private string _brand;
        private string _shortDesc;
        private string _unit;
        private double _weight;
        private double _marketPrice;
        private double _memberPrice;
        private int _score;
        private string _thumbnailImg;
        private string _productImg;
        private string _descrption;
        private int _storage;
        private int _miniNum;
        private int _isForSale;
        private int _isCommend;
        private int _isHot;
        private int _isNew;
        private int _isSpecialOffer;
        private DateTime _addTime;
        private int _canReview;
        private int _isDiscount;
        private string _relatedProductIDs;
        private string _relatedImgs;

        //商品id
        public int productID
        {
            get
            {
                return this._productID;
            }
            set
            {
                this._productID = value;
            }
        }

        //商品类别id
        public int productTypeID
        {
            get
            {
                return this._productTypeID;
            }
            set
            {
                this._productTypeID = value;
            }
        }

        //商品名称
        public string name
        {
            get
            {
                return this._name;
            }
            set
            {
                this._name = value;
            }
        }

        //商品代码
        public string productNo
        {
            get
            {
                return this._productNo;
            }
            set
            {
                this._productNo = value;
            }
        }
        //商品品牌
        public string brand
        {
            get
            {
                return this._brand;
            }
            set
            {
                this._brand = value;
            }
        }

        //简单描述
        public string shortDesc
        {
            get
            {
                return this._shortDesc;
            }
            set
            {
                this._shortDesc = value;
            }
        }

        //计量单位
        public string unit
        {
            get
            {
                return this._unit;
            }
            set
            {
                this._unit = value;
            }
        }

        //单位重量
        public double weight
        {
            get
            {
                return this._weight;
            }
            set
            {
                this._weight = value;
            }
        }

        //市场价格
        public double marketPrice
        {
            get
            {
                return this._marketPrice;
            }
            set
            {
                this._marketPrice = value;
            }
        }

        //会员价格
        public double memberPrice
        {
            get
            {
                return this._memberPrice;
            }
            set
            {
                this._memberPrice = value;
            }
        }

        //积分点数
        public int score
        {
            get
            {
                return this._score;
            }
            set
            {
                this._score = value;
            }
        }

        //商品缩略图
        public string thumbnailImg
        {
            get
            {
                return this._thumbnailImg;
            }
            set
            {
                this._thumbnailImg = value;
            }
        }

        //商品大图
        public string productImg
        {
            get
            {
                return this._productImg;
            }
            set
            {
                this._productImg = value;
            }
        }

        //详细描述
        public string descrption
        {
            get
            {
                return this._descrption;
            }
            set
            {
                this._descrption = value;
            }
        }

        //库存
        public int storage
        {
            get
            {
                return this._storage;
            }
            set
            {
                this._storage = value;
            }
        }

        //最低购买数量
        public int miniNum
        {
            get
            {
                return this._miniNum;
            }
            set
            {
                this._miniNum = value;
            }
        }

        //是否发布
        public int isForSale
        {
            get
            {
                return this._isForSale;
            }
            set
            {
                this._isForSale = value;
            }
        }

        //是否推荐
        public int isCommend
        {
            get
            {
                return this._isCommend;
            }
            set
            {
                this._isCommend = value;
            }
        }

        //是否热买
        public int isHot
        {
            get
            {
                return this._isHot;
            }
            set
            {
                this._isHot = value;
            }
        }

        //是否最新
        public int isNew
        {
            get
            {
                return this._isNew;
            }
            set
            {
                this._isNew = value;
            }
        }

        //是否特价
        public int isSpecialOffer
        {
            get
            {
                return this._isSpecialOffer;
            }
            set
            {
                this._isSpecialOffer = value;
            }
        }

        //添加时间
        public DateTime addTime
        {
            get
            {
                return this._addTime;
            }
            set
            {
                this._addTime = value;
            }
        }

        //是否允许评论
        public int canReview
        {
            get
            {
                return this._canReview;
            }
            set
            {
                this._canReview = value;
            }
        }

        //是否参与打折
        public int isDiscount
        {
            get
            {
                return this._isDiscount;
            }
            set
            {
                this._isDiscount = value;
            }
        }

        //相关商品
        public string relatedProductIDs
        {
            get
            {
                return this._relatedProductIDs;
            }
            set
            {
                this._relatedProductIDs = value;
            }
        }
        //相关商品图片
        public string relatedImgs
        {
            get
            {
                return this._relatedImgs;
            }
            set
            {
                this._relatedImgs = value;
            }
        }

    }
}
